package com.huitu.whht.base.core.api.rel.z.entities;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import com.huitu.whht.api.core.common.base.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.huitu.whht.api.core.common.base.MyLocalDateTimeDeserializer;
import com.huitu.whht.api.core.common.base.MyLocalDateTimeSerializer;
import java.time.LocalDateTime;

/**
 * 说明: 测站水位流量关系曲线表主键实体类,表名称: REL_Z_Q <br/>
 * 日期: 2019-04-11
 * @author LiuCW
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class RelZQKey extends BaseEntity {

private static final long serialVersionUID = 4L;

    /**
      * 测站代码
      */
    private String stcd;
    /**
      * 曲线名称
      */
    private String curvNm;
    /**
      * 启用时间
      */
    @JsonDeserialize(using = MyLocalDateTimeDeserializer.class)
    @JsonSerialize(using = MyLocalDateTimeSerializer.class)
    private LocalDateTime enabTm;
    /**
      * 点序号
      */
    private String ptNo;
    /**
      * 水位
      */
    private Double z;
    /**
      * 流量
      */
    private Double q;
    /**
      * 备注
      */
    private String nt;
    /**
      * 时间戳
      */
    @JsonDeserialize(using = MyLocalDateTimeDeserializer.class)
    @JsonSerialize(using = MyLocalDateTimeSerializer.class)
    private LocalDateTime ts;
}